/* eslint-disable */
import { REFRESH_CAPTCHA } from '../constants/ActionTypes';

const initialState = {
  captcha: '',
};

const refreshCaptcha = (state = initialState, action) => {
  switch (action.type) {
    case REFRESH_CAPTCHA:
      return Object.assign({}, state, {
        captcha: action.captcha,
      });
    default:
      return state;
  }
};

export default refreshCaptcha;
